package com.heyige.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("member_levels")
public class MemberLevel {
    
    @TableId(type = IdType.AUTO)
    private Long id;
    
    @TableField("name")
    private String name;
    
    @TableField("display_name")
    private String displayName;
    
    @TableField("description")
    private String description;
    
    @TableField("level")
    private Integer level;
    
    @TableField("price")
    private Double price = 0.0;
    
    @TableField("duration_days")
    private Integer durationDays;
    
    @TableField("quota_per_day")
    private Integer quotaPerDay;
    
    @TableField("is_active")
    private Boolean isActive = true;
    
    @TableField("sort_order")
    private Integer sortOrder = 0;
    
    @TableField(value = "created_at", fill = FieldFill.INSERT)
    private LocalDateTime createdAt;
    
    @TableField(value = "updated_at", fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updatedAt;
}